package it.avantsoft.ls.peer.command;

import it.avantsoft.ls.peer.PeerHandler;

public class NewUncleABCommand extends PeerCommand {

    private String id;

    public NewUncleABCommand(PeerHandler peerHandler, String id) {
        super(peerHandler);
        this.id = id;
    }

    public void execute() {
        getPeer().addUpperPeer(id);
    }

    public String toString() {
        return "NewUncleABCommand{" +
                "id='" + id + '\'' +
                '}';
    }
}
